using System;
using System.Collections.Generic;
using System.Globalization;
using Avalonia.Data.Converters;

namespace 畜牧业审核程序国产.Models.RagModel.SenderConverter;

public class MultiConvertFromSenderAndRagModel:IMultiValueConverter
{
    
    public object? Convert(IList<object?> values, Type targetType, object? parameter, CultureInfo culture)
    {
        if (values.Count==2 && values[0] is string sender && values[1] is string ragModel)
        {
            if (sender.Equals("user")==false && ragModel.Contains("普通")==false)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        return false;
    }
}